﻿using System;
using System.ComponentModel.DataAnnotations;
using YNTK.Dependency;
using YNTK.System.Entitys.Dto.Common;

namespace YNTK.System.Entitys.Dto.Permission.Organize
{
    /// <summary>
    /// 定置定位文件数据传输模型
    /// </summary>
    [SuppressSniffer]
    public class OrientationFileListDto
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }

        /// <summary>
        /// 机构id
        /// </summary>
        public string mechanismId { get; set; }

        /// <summary>
        /// 机构名称
        /// </summary>
        public string mechanismName { get; set; }

        /// <summary>
        /// 定置定位文件分类id
        /// </summary>
        public string classifyId { get; set; }

        /// <summary>
        /// 定置定位文件分类
        /// </summary>
        public string classifyName { get; set; }

        /// <summary>
        /// 创建用户
        /// </summary>
        public string creatorUserId { get; set; }

        /// <summary>
        /// 上传人姓名
        /// </summary>
        public string creatorUserName { get; set; }

        /// <summary>
        /// 上传时间
        /// </summary>
        public DateTime? creatorTime { get; set; }

        /// <summary>
        /// 文件id
        /// </summary>
        public string fileId { get; set; }

        /// <summary>
        /// 文件名称
        /// </summary>
        public string fileName { get; set; }

        /// <summary>
        /// 存储文件名
        /// </summary>
        public string saveFileName { get; set; }

        /// <summary>
        /// 文件后缀
        /// </summary>
        public string extension { get; set; }

        /// <summary>
        /// 文件大小
        /// </summary>
        public long size { get; set; }

        /// <summary>
        /// 文件大小以B，KB，GB，TB形式显示
        /// </summary>
        public string fileSize { get; set; }

        /// <summary>
        /// 文件存储目录
        /// </summary>
        public string fileDirectory { get; set; }
    }

    /// <summary>
    /// 上传定置定位文件请求模型
    /// </summary>
    [SuppressSniffer]
    public class AddOrientationFileRequestModel: FileRequestModel
    {
        /// <summary>
        /// 定置定位文件分类id
        /// </summary>
        [Required(ErrorMessage = "定置定位文件分类标识不能为空")]
        public string classifyId { get; set; }
    }

}
